$(function(){
//	editor = new baidu.editor.ui.Editor();
//	editor.render("textarea");
});
//验证
$(function(){
	$("#form1").validate({
		rules: {
			userName:{
				required: true
			},
			userPassword:{
				required: true
			}
		},
		messages: {
			userName:{
				required: "必填项"
			},
			userPassword:{
				required: "必填项"
			}
		},
		errorPlacement: function(error, element) {
            error.css('color','red');
            error.appendTo(element.next());
		}
	});
});